
CODE_DIR=$(cd $(dirname $0)/..; pwd)
cd $CODE_DIR
MY_ENTRANCE="entrance_hyj"

get_ns() {
  timestamp=`expr $(date '+%s') \* 1000 + $(date '+%N') / 1000000`
  echo $timestamp
}

echo "==============[Begin to Run]============\n"
start_time=$(date +%s%N)
python3 ${CODE_DIR}/${MY_ENTRANCE}.py
get_ns()
# cost=$timestamp
cost=$?
#  - $[$start_time/1000000]]
echo "==============[End, cost = $(($cost))s] ============\n"